import struct
import settings

#binfile = open('c.bin','wb')
#for num in range(50):
    #data = struct.pack('i',num)
    #binfile.write(data)

binfile = open(settings.webgraph,'rb')
intsize = struct.calcsize('i')
while 1:
    data = binfile.read(intsize)
    if data == '':
        break
    num = struct.unpack('i',data)
    print num
